package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Order;
import cn.wolfcode.trip.base.query.OrderQueryObject;
import cn.wolfcode.trip.base.util.AccountMessage;

import java.util.List;

public interface IOrderService {

    
    void delete(Long id);

    Order get(Long id);

    List<Order> selectAll();

    void update(Order order);

    /**
     * 商品积分结算
     * @param order
     * @return
     */
    AccountMessage saveOrder(Order order);

    /**
     * 获取用户所有的订单
     * @param qo
     * @return
     */
    List<Order> selectOrdersByUserId(OrderQueryObject qo);
}
